home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_explosion_devilhit.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  9.7 KB  |  399 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_EXPLOSION_DEVILHIT)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ActivityType = ENACT_ACTIVE
  7.  
  8. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  9. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  10. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  11. desc.LocalPosition = vzbzd1
  12. vzbzd1:delete()
  13. desc.isAnimateTexture = false
  14. desc.RenderType = ENRENDERTYPE_GEOMETRY
  15.  
  16. Emitter = desc.PS.PSDescription
  17. Emitter.ParticleTypesNumber = 3
  18. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  19. Emitter.EmitterPosition = vzbzd2
  20. vzbzd2:delete()
  21. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  22. Emitter.EmitterDirection = vzbzd3
  23. vzbzd3:delete()
  24. Emitter.EmitterLifeTime = 1
  25.  
  26.  
  27.  
  28. PT = Emitter.ParticleTypesParams[1]
  29. PT.IsEmitterLocked = false
  30. PT.DrawOrder = 1
  31. PT.Material = ENMAT_SIMPLEPARTICLE
  32.  
  33. PT.TextureName = "environment_effect_explosion_smoke14.dds"
  34.  
  35.  
  36. PT.ParticlesPerSecond = 0.1;
  37. PT.InitialNumberOfParticles = 30.0;
  38. PT.BaseLifeTime = 2.5;
  39. PT.BaseLifeTimeVariance = 0.2;
  40. PT.BaseSpeed = 3.0;
  41. PT.BaseSpeedVariance = 0.8;
  42.  
  43. PT.TangentSpeed = 5.0;
  44. PT.TangentSpeedVariance = 1.0;
  45. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  46. PT.TangentDirection = vzbzd4
  47. vzbzd4:delete()
  48. PT.TangentAngleMin = 0.0;
  49. PT.TangentAngleMax = 6.28;
  50. PT.IsTangentDependOnBase = false;
  51.  
  52. PT.BaseAngle = 3.0;
  53. PT.BaseAngleVariance = 5.0;
  54. PT.BaseAngleSpeed = 0.3;
  55. PT.BaseAngleSpeedVariance = 0.3;
  56. PT.BaseAngleSpeedDirection = 0;
  57. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  58. PT.BaseDirection = vzbzd5
  59. vzbzd5:delete()
  60. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  61. PT.BaseDirectionVariance = vzbzd6
  62. vzbzd6:delete()
  63. local vzbzd7 = D3DXVECTOR3:new(0,10,0)
  64. PT.BasePosition = vzbzd7
  65. vzbzd7:delete()
  66. local vzbzd8 = D3DXVECTOR3:new(10,0,10)
  67. PT.BasePositionVariance = vzbzd8
  68. vzbzd8:delete()
  69. PT.BaseSize = 8.0;
  70. PT.BaseSizeVariance = 0.3;
  71.  
  72. -- color over time
  73. PT.ColorOverTimeR[1].TimePercent = 0.0;
  74. PT.ColorOverTimeR[1].Value = 0.2;
  75. PT.ColorOverTimeG[1].TimePercent = 0.0;
  76. PT.ColorOverTimeG[1].Value = 0.2;
  77. PT.ColorOverTimeB[1].TimePercent = 0.0;
  78. PT.ColorOverTimeB[1].Value = 0.2;
  79.  
  80. PT.ColorOverTimeR[2].TimePercent = 1.0;
  81. PT.ColorOverTimeR[2].Value = 0.0;
  82. PT.ColorOverTimeG[2].TimePercent = 1.0;
  83. PT.ColorOverTimeG[2].Value = 0.0;
  84. PT.ColorOverTimeB[2].TimePercent = 1.0;
  85. PT.ColorOverTimeB[2].Value = 0.0;
  86.  
  87. -- transparency over time
  88. PT.TransparencyOverTime[1].TimePercent = 0.0;
  89. PT.TransparencyOverTime[1].Value = 0.0;
  90.  
  91. PT.TransparencyOverTime[2].TimePercent = 0.1;
  92. PT.TransparencyOverTime[2].Value = 0.6;
  93.  
  94. PT.TransparencyOverTime[3].TimePercent = 1.0;
  95. PT.TransparencyOverTime[3].Value = 0.0;
  96.  
  97. -- size over time
  98. PT.SizeOverTime[1].TimePercent = 0.0;
  99. PT.SizeOverTime[1].Value = 6.0;
  100.  
  101. PT.SizeOverTime[2].TimePercent = 1.0;
  102. PT.SizeOverTime[2].Value = 18.0;
  103.  
  104. -- Speed over time
  105. PT.SpeedOverTime[1].TimePercent = 0.0;
  106. PT.SpeedOverTime[1].Value = 0.0;
  107.  
  108. PT.SpeedOverTime[2].TimePercent = 0.4;
  109. PT.SpeedOverTime[2].Value = 0.0;
  110.  
  111. PT.SpeedOverTime[3].TimePercent = 1.0;
  112. PT.SpeedOverTime[3].Value = 0.0;
  113.  
  114. -- Tangent Speed over time
  115. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  116. PT.TangentSpeedOverTime[1].Value = 5.0;
  117.  
  118. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  119. PT.TangentSpeedOverTime[2].Value = 0.0;
  120.  
  121.  
  122. -- GravityAcceleration over time
  123. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  124. PT.GravityAccelerationOverTime[1].Value = 5.0;
  125.  
  126. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  127. PT.GravityAccelerationOverTime[2].Value = 5.0;
  128.  
  129. -- AngleSpeed over time
  130. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  131. PT.AngleSpeedOverTime[1].Value = 1.0;
  132.  
  133. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  134. PT.AngleSpeedOverTime[2].Value = 0.2;
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163. PT = Emitter.ParticleTypesParams[2]
  164. PT.IsEmitterLocked = false
  165. PT.DrawOrder = 3
  166. PT.Material = ENMAT_SIMPLEPARTICLE
  167.  
  168. PT.TextureName = "environment_effect_explosion_trash1.dds"
  169.  
  170. PT.ParticlesPerSecond = 0.1;
  171. PT.InitialNumberOfParticles = 30.0;
  172. PT.BaseLifeTime = 2.0;
  173. PT.BaseLifeTimeVariance = 0.0;
  174. PT.BaseSpeed = 1.0;
  175. PT.BaseSpeedVariance = 0.2;
  176.  
  177. PT.TangentSpeed = 1.0;
  178. PT.TangentSpeedVariance = 1.5;
  179. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  180. PT.TangentDirection = vzbzd9
  181. vzbzd9:delete()
  182. PT.TangentAngleMin = 0.0;
  183. PT.TangentAngleMax = 6.28;
  184. PT.IsTangentDependOnBase = false;
  185.  
  186. PT.BaseAngle = 3.0;
  187. PT.BaseAngleVariance = 5.0;
  188. PT.BaseAngleSpeed = 0.2;
  189. PT.BaseAngleSpeedVariance = 0.3;
  190. PT.BaseAngleSpeedDirection = 0;
  191. local vzbzd10 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  192. PT.BaseDirection = vzbzd10
  193. vzbzd10:delete()
  194. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  195. PT.BaseDirectionVariance = vzbzd11
  196. vzbzd11:delete()
  197. local vzbzd12 = D3DXVECTOR3:new(0,20,0)
  198. PT.BasePosition = vzbzd12
  199. vzbzd12:delete()
  200. local vzbzd13 = D3DXVECTOR3:new(20,20,20)
  201. PT.BasePositionVariance = vzbzd13
  202. vzbzd13:delete()
  203. PT.BaseSize = 4.0;
  204. PT.BaseSizeVariance = 0.6;
  205.  
  206. -- color over time
  207. PT.ColorOverTimeR[1].TimePercent = 0.0;
  208. PT.ColorOverTimeR[1].Value = 0.5;
  209. PT.ColorOverTimeG[1].TimePercent = 0.0;
  210. PT.ColorOverTimeG[1].Value = 0.5;
  211. PT.ColorOverTimeB[1].TimePercent = 0.0;
  212. PT.ColorOverTimeB[1].Value = 0.5;
  213.  
  214. PT.ColorOverTimeR[2].TimePercent = 1.0;
  215. PT.ColorOverTimeR[2].Value = 0.5;
  216. PT.ColorOverTimeG[2].TimePercent = 1.0;
  217. PT.ColorOverTimeG[2].Value = 0.5;
  218. PT.ColorOverTimeB[2].TimePercent = 1.0;
  219. PT.ColorOverTimeB[2].Value = 0.5;
  220.  
  221. -- transparency over time
  222. PT.TransparencyOverTime[1].TimePercent = 0.0;
  223. PT.TransparencyOverTime[1].Value = 0.0;
  224.  
  225. PT.TransparencyOverTime[2].TimePercent = 0.2;
  226. PT.TransparencyOverTime[2].Value = 1.0;
  227.  
  228. PT.TransparencyOverTime[3].TimePercent = 1.0;
  229. PT.TransparencyOverTime[3].Value = 0.0;
  230.  
  231. -- size over time
  232. PT.SizeOverTime[1].TimePercent = 0.0;
  233. PT.SizeOverTime[1].Value = 4.0;
  234.  
  235. PT.SizeOverTime[2].TimePercent = 0.2;
  236. PT.SizeOverTime[2].Value = 4.0;
  237.  
  238. PT.SizeOverTime[3].TimePercent = 1.0;
  239. PT.SizeOverTime[3].Value = 4.0;
  240.  
  241. -- Speed over time
  242. PT.SpeedOverTime[1].TimePercent = 0.0;
  243. PT.SpeedOverTime[1].Value = 1.0;
  244.  
  245. PT.SpeedOverTime[2].TimePercent = 0.7;
  246. PT.SpeedOverTime[2].Value = 1.0;
  247.  
  248. PT.SpeedOverTime[3].TimePercent = 1.0;
  249. PT.SpeedOverTime[3].Value = 1.0;
  250.  
  251. -- Tangent Speed over time
  252. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  253. PT.TangentSpeedOverTime[1].Value = 10.0;
  254.  
  255. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  256. PT.TangentSpeedOverTime[2].Value = 0.0;
  257.  
  258.  
  259. -- GravityAcceleration over time
  260. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  261. PT.GravityAccelerationOverTime[1].Value = 5.0;
  262.  
  263. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  264. PT.GravityAccelerationOverTime[2].Value = 5.0;
  265.  
  266. -- AngleSpeed over time
  267. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  268. PT.AngleSpeedOverTime[1].Value = 0.5;
  269.  
  270. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  271. PT.AngleSpeedOverTime[2].Value = 0.2
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282. PT = Emitter.ParticleTypesParams[3]
  283. PT.IsEmitterLocked = false
  284. PT.DrawOrder = 2
  285. PT.Material = ENMAT_PARTICLE_LIGHT
  286.  
  287. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  288.  
  289. PT.ParticlesPerSecond = 0.1;
  290. PT.InitialNumberOfParticles = 25.0;
  291. PT.BaseLifeTime = 0.5;
  292. PT.BaseLifeTimeVariance = 0.0;
  293. PT.BaseSpeed = 1.0;
  294. PT.BaseSpeedVariance = 0.2;
  295.  
  296. PT.TangentSpeed = 1.0;
  297. PT.TangentSpeedVariance = 1.5;
  298. local vzbzd14 = D3DXVECTOR3:new(1.0,0.0,0.0)
  299. PT.TangentDirection = vzbzd14
  300. vzbzd14:delete()
  301. PT.TangentAngleMin = 0.0;
  302. PT.TangentAngleMax = 6.28;
  303. PT.IsTangentDependOnBase = false;
  304.  
  305. PT.BaseAngle = 3.0;
  306. PT.BaseAngleVariance = 5.0;
  307. PT.BaseAngleSpeed = 0.2;
  308. PT.BaseAngleSpeedVariance = 0.3;
  309. PT.BaseAngleSpeedDirection = 0;
  310. local vzbzd15 = D3DXVECTOR3:new(0.0,-1.0,0.0)
  311. PT.BaseDirection = vzbzd15
  312. vzbzd15:delete()
  313. local vzbzd16 = D3DXVECTOR3:new(0.0,0.0,0.0)
  314. PT.BaseDirectionVariance = vzbzd16
  315. vzbzd16:delete()
  316. local vzbzd17 = D3DXVECTOR3:new(0,10,0)
  317. PT.BasePosition = vzbzd17
  318. vzbzd17:delete()
  319. local vzbzd18 = D3DXVECTOR3:new(10,0,10)
  320. PT.BasePositionVariance = vzbzd18
  321. vzbzd18:delete()
  322. PT.BaseSize = 5.0;
  323. PT.BaseSizeVariance = 0.6;
  324.  
  325. -- color over time
  326. PT.ColorOverTimeR[1].TimePercent = 0.0;
  327. PT.ColorOverTimeR[1].Value = 1.0;
  328. PT.ColorOverTimeG[1].TimePercent = 0.0;
  329. PT.ColorOverTimeG[1].Value = 0.8;
  330. PT.ColorOverTimeB[1].TimePercent = 0.0;
  331. PT.ColorOverTimeB[1].Value = 0.0;
  332.  
  333. PT.ColorOverTimeR[2].TimePercent = 1.0;
  334. PT.ColorOverTimeR[2].Value = 0.8;
  335. PT.ColorOverTimeG[2].TimePercent = 1.0;
  336. PT.ColorOverTimeG[2].Value = 0.0;
  337. PT.ColorOverTimeB[2].TimePercent = 1.0;
  338. PT.ColorOverTimeB[2].Value = 0.0;
  339.  
  340. -- transparency over time
  341. PT.TransparencyOverTime[1].TimePercent = 0.0;
  342. PT.TransparencyOverTime[1].Value = 1.0;
  343.  
  344. PT.TransparencyOverTime[2].TimePercent = 0.1;
  345. PT.TransparencyOverTime[2].Value = 1.0;
  346.  
  347. PT.TransparencyOverTime[3].TimePercent = 1.0;
  348. PT.TransparencyOverTime[3].Value = 0.0;
  349.  
  350. -- size over time
  351. PT.SizeOverTime[1].TimePercent = 0.0;
  352. PT.SizeOverTime[1].Value = 4.0;
  353.  
  354. PT.SizeOverTime[2].TimePercent = 0.2;
  355. PT.SizeOverTime[2].Value = 5.0;
  356.  
  357. PT.SizeOverTime[3].TimePercent = 1.0;
  358. PT.SizeOverTime[3].Value = 8.0;
  359.  
  360. -- Speed over time
  361. PT.SpeedOverTime[1].TimePercent = 0.0;
  362. PT.SpeedOverTime[1].Value = 1.0;
  363.  
  364. PT.SpeedOverTime[2].TimePercent = 0.7;
  365. PT.SpeedOverTime[2].Value = 1.0;
  366.  
  367. PT.SpeedOverTime[3].TimePercent = 1.0;
  368. PT.SpeedOverTime[3].Value = 0.0;
  369.  
  370. -- Tangent Speed over time
  371. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  372. PT.TangentSpeedOverTime[1].Value = 6.0;
  373.  
  374. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  375. PT.TangentSpeedOverTime[2].Value = 5.0;
  376.  
  377.  
  378. -- GravityAcceleration over time
  379. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  380. PT.GravityAccelerationOverTime[1].Value = 0.0;
  381.  
  382. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  383. PT.GravityAccelerationOverTime[2].Value = 0.0;
  384.  
  385. -- AngleSpeed over time
  386. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  387. PT.AngleSpeedOverTime[1].Value = 0.5;
  388.  
  389. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  390. PT.AngleSpeedOverTime[2].Value = 0.2
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.